import { createParamDecorator, ExecutionContext, SetMetadata } from '@nestjs/common';
import type {Request} from 'express'
export const Role = (...args: string[]) => SetMetadata('role', args);

export const ReqUrl = createParamDecorator((data:string,ctx: ExecutionContext)=>{
  const req = ctx.switchToHttp().getRequest<Request>()
  console.log("decoratorData:",data);
  return req.url
})